import { t } from '@src/locales';
export const SEARCHDATA = [
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'paymentMethod',
    displayName: t('task.detail.components.payMethod'),
    formType: 'select',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {
      isMulti: false, dataSource: [
        `${t('task.detail.components.onlinePayByAli')}`,
        `${t('task.detail.components.aliPayCode')}`,
        `${t('task.detail.components.weChatCode')}`,
        `${t('task.detail.components.bankCardCollection')}`,
        `${t('task.detail.components.otherPayUnifiedCollection')}`,
        `${t('task.detail.components.otherPayMonthCollection')}`,
        `${t('task.detail.components.otherPayWeekCollection')}`
      ]
    },
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'tags',
    displayName: t('common.label.serviceTeam'),
    formType: 'select',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    show: true,
    placeHolder: null,
    setting: {},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'createUser',
    exportAlias: 'createUser',
    displayName: t('common.base.createUser'),
    formType: 'user',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'allotUser',
    exportAlias: 'createUser',
    displayName: t('task.allotUser'),
    formType: 'user',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'executor',
    exportAlias: 'createUser',
    displayName: t('common.label.principalName'),
    formType: 'user',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'synergyId',
    displayName: t('common.label.synergiesUser'),
    formType: 'user',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'state',
    displayName: t('common.label.taskStatus'),
    formType: 'select',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {isMulti: false, dataSource:[
      t('common.task.type.created'),
      t('common.task.type.allocated'),
      t('common.task.type.accepted'),
      t('common.task.type.processing'),
      t('common.base.usualStatus.finish'),
      t('common.base.usualStatus.rejected'),
      t('common.task.type.costed'),
      t('common.task.type.closed'),
      t('common.task.type.offed'),
      t('common.task.type.taskPool')
    ]},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'createTime',
    displayName: t('common.base.createTime'),
    formType: 'datetime',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'allotTime',
    displayName: t('task.list.displayName.allotTime'),
    formType: 'datetime',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'acceptTime',
    displayName: t('task.list.displayName.acceptTime'),
    formType: 'datetime',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'startTime',
    displayName: t('task.list.displayName.startTime'),
    formType: 'datetime',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'completeTime',
    displayName: t('common.task.flow.finishTime'),
    formType: 'datetime',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'updateTime',
    displayName: t('task.list.displayName.updateTime'),
    formType: 'datetime',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: t('task.detail.components.reviewTime'),
    displayName: 'reviewTime',
    formType: 'datetime',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'balanceTime',
    displayName: t('task.list.displayName.balanceTime'),
    formType: 'datetime',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'closeTime',
    displayName: t('task.list.displayName.closeTime'),
    formType: 'datetime',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'allotTypeStr',
    displayName: t('task.list.displayName.allotType'),
    formType: 'select',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {isMulti: false, dataSource:[
      t('task.detail.components.manualDispatch'),
      t('task.detail.components.poolDispatch'),
      t('task.detail.components.autoDispatch'),
    ]},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'onceException',
    exportAlias: 'createUser',
    displayName: t('task.list.displayName.exceptionTag'),
    formType: 'select',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {
      isMulti: false, dataSource: [
        t('common.task.exceptionStatus.onceOverTime'),
        t('common.task.exceptionStatus.onceRefused'),
        t('common.task.exceptionStatus.oncePaused'),
        t('common.task.exceptionStatus.onceRollback'),
        t('common.task.exceptionStatus.positionException'),
      ]
    },
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'onceReallot',
    displayName: t('common.task.exceptionStatus.onceAllot'),
    formType: 'select',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {isMulti: false, dataSource:[
      t('common.base.yes'),
    ]},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'oncePrinted',
    displayName: t('task.list.displayName.oncePrinted'),
    formType: 'select',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {isMulti: false, dataSource:[
      t('common.base.yes'),
      t('common.base.no')
    ]},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'inApprove',
    displayName: t('task.list.displayName.approveStatus'),
    formType: 'select',
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {isMulti: false, dataSource:[
      t('common.base.usualStatus.approving'),
      t('common.base.usualStatus.noApprove')
    ]},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'exceptionType',
    displayName: t('task.list.displayName.overTimeTask'),
    formType: 'select',
    // formType: "user",
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {isMulti: false, dataSource:[
      t('common.base.usualStatus.paused'),
      t('common.base.usualStatus.overtime')
    ]},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'source',
    displayName: t('common.base.createSource'),
    formType: 'select',
    orderId: 1,
    isDelete: 0,
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
    setting: {isMulti: false, dataSource:[
      t('task.list.displayName.importCreate'),
      t('task.list.displayName.manualCreate'),
      t('task.list.apiCreate'),
      t('task.list.displayName.eventCreate'),
      t('task.list.planCreate')
    ]},
  },
  {
    id: 5460,
    tableName: 'customer',
    isSystem: 1,
    fieldName: 'eventNo',
    displayName: t('task.list.displayName.relatedEvent'),
    formType: 'text',
    // formType: "user",
    defaultValue: null,
    isNull: 1,
    isSearch: 1,
    placeHolder: null,
    setting: {},
    orderId: 1,
    isDelete: 0,
    guideProfessions: [],
    show: true,
    isGuideData: false,
    guideData: false,
  },
]; // 工单系统字段

export const SELFFIELDS = [{
  displayName: t('common.base.locationMap.area'),
  fieldName: 'area',
  formType: 'area',
  isExport: false,
  isNull: 1,
  isSystem: 1,
  orderId: 10
}, {
  displayName: t('common.base.locationMap.detail'),
  fieldName: 'addressDetail',
  formType: 'text',
  isExport: false,
  isNull: 1,
  isSystem: 1,
  orderId: 11
}, {
  displayName: t('product.detail.catalogView.type.linkman'),
  fieldName: 'linkmanIdStr',
  formType: 'linkman',
  isExport: false,
  isNull: 1,
  isSystem: 1,
  orderId: 3,
  placeholder: t('common.form.placeHolder.linkman.pla1')
}, {
  displayName: t('common.base.createUser'),
  fieldName: 'createUser',
  formType: 'user',
  isExport: false,
  isNull: 1,
  isSystem: 1,
  orderId: 12
}, {
  displayName: t('common.base.createTime'),
  fieldName: 'createTime',
  formType: 'datetime',
  isExport: false,
  isNull: 1,
  isSystem: 1,
  operator: 'between',
  orderId: 98
}, {
  displayName: t('task.list.displayName.updateTime'),
  fieldName: 'updateTime',
  formType: 'datetime',
  isExport: false,
  isNull: 1,
  isSystem: 1,
  operator: 'between',
  orderId: 99
}, {
  displayName: t('common.label.hasRemind'),
  fieldName: 'hasRemind',
  formType: 'select',
  isExport: false,
  isNull: 1,
  isSystem: 1,
  operator: 'between',
  orderId: 96,
  setting: {
    isMulti: false,
    dataSource: [{
      text: t('common.base.all'),
      value: ''
    }, {
      text: t('common.base.hasState.0'),
      value: 1
    }, {
      text: t('common.base.hasState.1'),
      value: 0
    }]
  }
}, {
  displayName: t('common.base.status'),
  fieldName: 'status',
  formType: 'select',
  isExport: false,
  isNull: 1,
  isSystem: 1,
  operator: 'between',
  orderId: 97,
  setting: {
    isMulti: false,
    dataSource: [{
      text: t('common.base.all'),
      value: ''
    }, {
      text: t('common.base.enable'),
      value: 1
    }, {
      text: t('common.base.disable'),
      value: 0
    }]
  }
}] // 客户系统字段

export const FIXEDFIELDS = [
  {
    displayName: t('common.base.lastUpdate'),
    fieldName: 'updateTime',
    formType: 'datetime',
    isExport: false,
    isSystem: 1,
  },
  {
    displayName: t('common.base.productTemplate'),
    fieldName: 'productTemplate',
    formType: 'text',
    isExport: false,
    isSystem: 0,
  },
  {
    displayName: t('common.base.serviceDepartment'),
    fieldName: 'tags',
    isExport: true,
    isSystem: 0,
    exportAlias: 'customerTags'
  },
  {
    displayName: t('common.label.remindCount'),
    fieldName: 'remindCount',
    isExport: false,
    isSystem: 0,
  },
  {
    displayName: t('common.base.createUser'),
    fieldName: 'createUser',
    isExport: true,
    isSystem: 0
  },
  {
    displayName: t('common.base.createTime'),
    fieldName: 'createTime',
    isExport: true,
    isSystem: 0
  }
]; // 产品系统字段